package com.base.cn.platform.os.service.manage.join;

import com.base.cn.platform.os.service.FeignAuthConfig;
import com.base.cn.platform.os.service.manage.BaseService;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * 用户角色关联Service
 *
 * @author s.li
 * @create 2018-03-06 11:33
 */
@FeignClient(name = BaseService.appName,configuration = FeignAuthConfig.class)
public interface UserRoleService extends BaseService {

    @RequestMapping(contextPath+"/findUserRoleListByUserId")
    List<Map<String,Object>> findUserRoleListByUserId(@RequestParam("userId") BigDecimal userId);
}
